Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mx 15702 sovereign enable epochs handler #6626

Merged

Conversation

axenteoctavian
Copy link
Contributor

@axenteoctavian axenteoctavian commented Nov 22, 2024

Reasoning behind the pull request

  • need sovereign enable epochs handler

Proposed changes

  • enable epochs handler in run type core components

Testing procedure

  • sovereign chain simulator tests passed
    image

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@axenteoctavian axenteoctavian self-assigned this Nov 22, 2024
@axenteoctavian axenteoctavian marked this pull request as ready for review November 28, 2024 14:56
@mariusmihaic mariusmihaic self-requested a review December 4, 2024 11:36
common/enablers/errors.go Outdated Show resolved Hide resolved
config/epochConfig.go Outdated Show resolved Hide resolved
factory/runType/sovereignRunTypeCoreComponents.go Outdated Show resolved Hide resolved
genesis/process/genesisBlockCreator.go Outdated Show resolved Hide resolved
integrationTests/realcomponents/processorRunner.go Outdated Show resolved Hide resolved
integrationTests/realcomponents/processorRunner.go Outdated Show resolved Hide resolved
integrationTests/testProcessorNode.go Show resolved Hide resolved
node/chainSimulator/components/coreComponents.go Outdated Show resolved Hide resolved
…s-handler

# Conflicts:
#	factory/processing/processComponents.go
#	factory/processing/processComponents_test.go
factory/core/coreComponents_test.go Show resolved Hide resolved
factory/core/coreComponents.go Show resolved Hide resolved
cmd/sovereignnode/main.go Show resolved Hide resolved
cmd/sovereignnode/config/common.go Show resolved Hide resolved
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

Attention: Patch coverage is 86.33094% with 19 lines in your changes missing coverage. Please review.

Project coverage is 77.69%. Comparing base (000cff6) to head (2c0776e).
Report is 1235 commits behind head on feat/chain-go-sdk.

Files with missing lines Patch % Lines
node/nodeRunner.go 0.00% 13 Missing ⚠️
factory/runType/runTypeCoreComponentsHandler.go 75.00% 1 Missing and 1 partial ⚠️
genesis/process/genesisBlockCreator.go 33.33% 1 Missing and 1 partial ⚠️
...ode/chainSimulator/components/processComponents.go 0.00% 1 Missing ⚠️
...hainSimulator/components/testOnlyProcessingNode.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##           feat/chain-go-sdk    #6626      +/-   ##
=====================================================
+ Coverage              77.68%   77.69%   +0.01%     
=====================================================
  Files                    928      963      +35     
  Lines                 106315   108696    +2381     
=====================================================
+ Hits                   82593    84456    +1863     
- Misses                 18035    18416     +381     
- Partials                5687     5824     +137     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…s-handler

# Conflicts:
#	factory/processing/processComponents.go
#	genesis/process/genesisBlockCreator.go
#	integrationTests/realcomponents/processorRunner.go
#	node/nodeRunner.go
@multiversx multiversx deleted a comment from github-actions bot Dec 13, 2024
@@ -92,7 +92,7 @@
ValidatorToDelegationEnableEpoch = 0

# WaitingListFixEnableEpoch represents the epoch when the 6 epoch waiting list fix is enabled
WaitingListFixEnableEpoch = 1000000
WaitingListFixEnableEpoch = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag I think should always be disabled or never used.

I think in the original enableEpochs.toml from node this flag should have been deleted.
Also, not sure about CorrectLastUnjailedEnableEpoch & BuiltInFunctionOnMetaEnableEpoch. We should ask @sasurobert 's opinion as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this epoch. That fix was never implemented and we do not have waiting list anymore.
CorrectLastUnJailed can be deleted from here, as it is treated as 0 in that case, same with builtInFuncOnMeta.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Deleted WaitingListFixEnableEpoch and BuiltInFunctionOnMetaEnableEpoch.
  • I kept the CorrectLastUnjailedEnableEpoch because is a flag in enable epochs handler

config/tomlConfig_test.go Outdated Show resolved Hide resolved
@sasurobert sasurobert self-requested a review January 20, 2025 08:27
@@ -4,13 +4,13 @@ import (
"testing"
"time"

"github.com/multiversx/mx-chain-core-go/core"
"github.com/stretchr/testify/require"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goimport.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be ok, it's split in 3 categories.

@@ -8,14 +8,15 @@ import (

"github.com/multiversx/mx-chain-core-go/core"
"github.com/multiversx/mx-chain-core-go/core/check"
logger "github.com/multiversx/mx-chain-logger-go"
"github.com/multiversx/mx-chain-logger-go/file"
"github.com/urfave/cli"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goimport

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be ok, it's split in 3 categories.

@@ -4,12 +4,17 @@ import (
"errors"
"testing"

"github.com/stretchr/testify/require"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goimports everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be ok, it's split in 3 categories.

@axenteoctavian axenteoctavian merged commit 2c00d8a into feat/chain-go-sdk Jan 21, 2025
6 checks passed
@axenteoctavian axenteoctavian deleted the MX-15702-sovereign-enable-epochs-handler branch January 21, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants